package cn.sunlelin.educationserver.service;

import cn.sunlelin.educationserver.entity.Discuss;
import com.github.pagehelper.Page;

import java.util.*;

public interface DiscussService {
    public Boolean createDiscuss(Discuss discuss);
    public List<Map<String,Object>> selectDiscussByCourseId(Integer courseId);
    public List<Map<String,Object>> selectDiscussByUserId(Integer UserId);

    Page<Map<String,Object>> getPageByUserId(Integer currentPage, Integer pageSize, Integer userId);

    public Map<String,Object> selectDiscussById(Integer discussId);

    Page<Map<String,Object>> getPageByCourseId(Integer currentPage, Integer pageSize, Integer courseId);

    Boolean addBrowseNum(Integer discussId);

    public Boolean addReplyNum(Integer discussId);
    public Boolean minusReplyNum(Integer discussId);
    public Boolean deleteDiscuss(Integer discussId);
}
